{\rtf1\ansi\ansicpg936\cocoartf1404\cocoasubrtf470
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset134 STHeitiSC-Light;}
{\colortbl;\red255\green255\blue255;\red29\green133\blue25;\red77\green0\blue158;\red46\green13\blue110;
\red186\green0\blue17;\red85\green142\blue40;\red92\green38\blue153;\red180\green0\blue98;}
\paperw11900\paperh16840\margl1440\margr1440\vieww25100\viewh16980\viewkind0
\deftab1204
\pard\tx1204\pardeftab1204\pardirnatural\partightenfactor0

\f0\fs60 \cf0 \CocoaLigature0 NSUserDefaults
\fs50 \cf2  \
	 
\f1 \'b1\'be\'b5\'d8\'ca\'fd\'be\'dd\'b3\'d6\'be\'c3\'bb\'af\'b4\'e6\'b4\'a2
\f0 (
\f1 \'be\'cd\'ca\'c7\'b4\'e6\'b4\'a2\'d4\'da\'d3\'b2\'c5\'cc\'d6\'d0\'b5\'c4\'ca\'fd\'be\'dd
\f0 )\
     
\f1 \'b9\'e9\'b5\'b5\'a1\'a2
\f0 plist\
     NSUserDefaults 
\f1 \'cb\'fc\'ca\'c7\'d2\'bb\'b8\'f6\'b5\'a5\'c0\'fd\'a3\'a8\'d4\'da\'d5\'fb\'b8\'f6\'b9\'a4\'b3\'cc\'d6\'bb\'d3\'d0\'d2\'bb\'b8\'f6\'b6\'d4\'cf\'f3\'a3\'a9\'a3\'ac\'cb\'fc\'b5\'c4\'b1\'be\'d6\'ca\'c6\'e4\'ca\'b5\'ca\'c7
\f0 plist
\f1 \'ce\'c4\'bc\'fe\'a3\'ac\'b5\'ab\'ca\'c7\'c4\'e3\'d4\'da\'c9\'b3\'ba\'d0\'c2\'b7\'be\'b6\'d6\'d0\'d5\'d2\'b2\'bb\'b5\'bd\'d5\'e2\'b8\'f6\'ce\'c4\'bc\'fe
\f0 !\
     
\f1 \'cb\'fc\'b4\'e6\'b4\'a2\'b5\'c4\'b6\'d4\'cf\'f3\'ca\'c7\'d3\'d0\'cf\'de\'d6\'c6\'b5\'c4\'a3\'ac\'d6\'bb\'c4\'dc\'b4\'e6\'b4\'a2
\f0 7
\f1 \'b8\'f6\'c0\'e0\'d0\'cd\'b5\'c4\'b6\'d4\'cf\'f3\'a3\'ac
\f0 NSArray,NSDictionary,NSString,NSNumber(NSInteger,float,double),BOOL,NSData,NSDate\
     
\f1 \'d7\'a2\'d2\'e2\'a3\'ba
\f0 **********************\
     1.
\f1 \'d4\'da\'ca\'fd\'d7\'e9\'bb\'f2\'d5\'df\'d7\'d6\'b5\'e4\'d6\'d0\'b4\'e6\'b7\'c5\'b5\'c4\'b6\'d4\'cf\'f3\'d2\'b2\'b1\'d8\'d0\'eb\'ca\'c7\'c9\'cf\'ca\'f6
\f0 7
\f1 \'d6\'d6\'c0\'e0\'d0\'cd\'b5\'c4\'b6\'d4\'cf\'f3
\f0 \
     2.
\f1 \'b4\'e6\'b4\'a2\'b5\'c4\'b6\'d4\'cf\'f3\'b2\'bb\'c4\'dc\'ca\'c7\'bf\'c9\'b1\'e4\'c0\'e0\'d0\'cd\'b5\'c4
\f0  
\f1 \'c0\'fd\'c8\'e7\'a3\'ba
\f0 NSMutableArray,NSMutableDictionry
\f1 \'b5\'c8
\f0 \
   \cf0    \
\cf2 //
\f1 \'bb\'f1\'b5\'c3\'b5\'a5\'c0\'fd\'b6\'d4\'cf\'f3 
\f0 \cf0 \
    \cf3 NSUserDefaults\cf0  * user = [\cf3 NSUserDefaults\cf0  \cf4 standardUserDefaults\cf0 ] ;\
    \cf2 //
\f1 \'b8\'b3\'d6\'b5
\f0 \cf0 \
    [user \cf4 setObject\cf0 :\cf5 @"
\f1 \'bd\'a3\'ba\'c0
\f0 "\cf0  \cf4 forKey\cf0 :\cf5 @"userName"\cf0 ] ;\
    \cf2 //
\f1 \'b8\'f8\'cf\'e0\'cd\'ac\'b5\'c4
\f0 key
\f1 \'b8\'b3\'d6\'b5\'bb\'e1\'b8\'b2\'b8\'c7\'c7\'b0\'d2\'bb\'b8\'f6
\f0 value\cf0 \
\cf2 //    [user setObject:@"
\f1 \'b4\'f3\'c1\'b3\'c3\'a8
\f0 " forKey:@"userName"] ;\cf0 \
    \
    \cf2 //
\f1 \'d0\'b4\'c8\'eb\'b5\'bd\'c4\'da\'b4\'e6
\f0   (
\f1 \'b5\'b1
\f0 user
\f1 \'d6\'d0\'bc\'fc\'d6\'b5\'b6\'d4\'b8\'c4\'b1\'e4\'b5\'c4\'ca\'b1\'ba\'f2\'a3\'ac\'be\'cd\'d0\'e8\'d2\'aa\'d7\'f6\'d5\'e2\'d2\'bb\'b2\'bd\'b2\'d9\'d7\'f7
\f0 )\cf0 \
    [user \cf4 synchronize\cf0 ] ;\
    \
    \cf2 //
\f1 \'c9\'be\'b3\'fd\'ca\'fd\'be\'dd
\f0 \cf0 \
    [user \cf4 removeObjectForKey\cf0 :\cf5 @"userName"\cf0 ] ;\
\
    \cf2 //
\f1 \'ca\'fd\'be\'dd\'cd\'ac\'b2\'bd
\f0 \cf0 \
    [user \cf4 synchronize\cf0 ] ;\
********************************\

\f1 \cf6 \'d2\'d4\'b9\'d8\'bc\'fc\'d7\'d6
\f0 Key
\f1 \'c3\'fb\'d7\'d6
\f0  
\f1 \'b4\'e6\'b4\'a2\'b8\'f7\'d6\'d6\'ca\'fd\'be\'dd\'c0\'e0\'d0\'cd
\f0 \cf0 \
- (\cf3 NSString\cf0  *)stringForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf3 NSArray\cf0  *)arrayForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf3 NSDictionary\cf0  *)dictionaryForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf3 NSData\cf0  *)dataForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf3 NSArray\cf0  *)stringArrayForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf7 NSInteger\cf0 )integerForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf8 float\cf0 )floatForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf8 double\cf0 )doubleForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf8 BOOL\cf0 )boolForKey:(\cf3 NSString\cf0  *)defaultName;\
- (\cf3 NSURL\cf0  *)URLForKey:(\cf3 NSString\cf0  *)defaultName\
\
\
}